/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.us.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.us.entity.UsAttendanceAdp;
import com.thinkgem.jeesite.modules.warehouse.entity.BIWarehouseKpiData;

/**
 * 美东美西正岗DAO接口
 * @author hui.li
 * @version 2016-09-24
 */
@MyBatisDao
public interface UsAttendanceAdpDao extends CrudDao<UsAttendanceAdp> {
	/*
	 * 仓库BI报表
	 */
	public List<BIWarehouseKpiData> findAllListBIWarehouseKpi(BIWarehouseKpiData data);
	/*
	 * 仓库BI报表
	 */
	public List<BIWarehouseKpiData> findAllListBIWarehouseKpi2(BIWarehouseKpiData data);
	
	
	/**
	 * 查询没有被同步的分组后数据
	 * 
	 * @param data
	 * @return
	 */
	public List<UsAttendanceAdp> syncUsAttendanceAdp();
	
	/**
	 * 更新数据
	 * @param entity
	 * @return
	 */
	public int updateStatus(UsAttendanceAdp adp);
	/**
     * 根据仓库名称查询正岗考勤
     * @param entity
     * @return
     */
    public List<UsAttendanceAdp> queryByWarehouse(@Param("warehouseName") String warehouseName);
    
    /**
     * 
     * 根据员工编号和日期更改对接标示字段is_calculate
     * @param employeeNumber
     * @param date
     */
    public void updateByEmployeeDate(@Param("employeeNumber") String employeeNumber,@Param("date") Date date);
}